import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
//全局的数据中心
const store = new Vuex.Store({
  state: {
    active:'home'
  },
  mutations: {
		setActive(state,active){
			state.active = active
			sessionStorage.active = active
		}
  },
	getters:{
		
	},
	actions:{
		
	},
	modules:{
		
	}
})
export default store